package com.example.downloader.http;

import com.example.downloader.model.BaseDownloader;
import com.example.downloader.model.DownloadCallback;
import com.example.downloader.model.DownloadTask;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/11/22.
 */

public class SimpleOkHttpDownloader extends BaseDownloader<Response> {
    public SimpleOkHttpDownloader(String downloadPath) {
        super(downloadPath);
    }

    @Override
    protected DownloadTask<Response> makeDownloadTask(String filePath, String uri, DownloadCallback<Response> callback) {
        return new SimpleOkHttpDownloadTask(callback);
    }
}
